import time

from  selenium import webdriver
from selenium.webdriver.common.by import By

driver=webdriver.Chrome()
driver.get('https://www.baidu.com')

search_buttons=driver.find_element(By.ID, 'kw' )
search_buttons.send_keys("历史教训")
search_buttons.click()

time.sleep(10000)